package com.summer.data.connection;

/**
 * @author 345480567@qq.com
 */
public class SessionHolder {

    private static ThreadLocal<Session> tl = new ThreadLocal<>();

    public static void setSession(Session session) {
        tl.set(session);
    }

    public static Session getSession() {
        return tl.get();
    }

    public static void removeSession() {
        tl.remove();
    }

}
